﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceability.Domain;

namespace Traceability.Service.Interfae
{
    /// <summary>
    /// 保健信息
    /// </summary>
    public interface IHealthService
    {
        /// <summary>
        /// 添加保健信息
        /// </summary>
        /// <param name="health"></param>
        /// <returns></returns>
        Task<int> AddHealth(Health health);
        /// <summary>
        /// 显示
        /// </summary>
        /// <param name="bath"></param>
        /// <returns></returns>
        Task<List<Health>> GetHealth(string bath);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="hid"></param>
        /// <returns></returns>
        Task<Health> GetHealthBy(int hid);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="health"></param>
        /// <returns></returns>
        Task<int> UpdateHealth(Health health);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="hid"></param>
        /// <returns></returns>
        Task<int> DelHealth(int hid);
    }
}
